package com.wyp168.jvm001.heap;

/**
 * @ClassName HeapDemo002
 * @Description 设置方法去空间大小
 * jdk1.8及以后：-XX:MaxMetaspaceSize=100m -XX:MetaspaceSize=100m
 * jdk1.7及以前: -XX:PermSize=100m -XX:MaxPermSize=100m
 */
public class HeapDemo002 {
    public static void main(String[] args) {
        System.out.println("start...");

        try {
            Thread.sleep(1000000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

        System.out.println("end...");
    }
}
